package com.ruoyi.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author wl
 * @date 2025年11月04日16:28
 */
@Configuration
@ConfigurationProperties(prefix = "spring.redis")
@Data
@Component("commonRedisConfig") // 指定不同的Bean名称
public class RedisConfig {

    private String host;
    private String password;
    private int port;
    private int taskSchedulerPoolSize;
    private int taskSchedulerDefaultLockMaxDurationMinutes;
    private int defaultTimeout;
    private int expireTimeInMilliseconds;
    private int database;

}
